//
//  BToolsViewController.m
//  BaseTools
//
//  Created by 李挺哲 on 15/8/11.
//  Copyright (c) 2015年 ltz. All rights reserved.
//

#import "BToolsViewController.h"
@interface BToolsViewController ()

@end

@implementation BToolsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initNavigationTitle:@"BaseController使用方法" barTintColor:0x1E86CB titleColor:0xFFFFFF isTranslucent:NO isHidden:NO];
    [self showNavigationLeftButtonTitle:@"返回" tintColor:0xFFFFFF];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    
}
- (IBAction)IndicatorViewAction:(id)sender {
    
    
    [self showIndicatorView:kNetworkConnecting];
      [self showNavigationRightButton:@"消失" tintColor:0xFFFFFF];
    
}
- (IBAction)IndicatorViewDisMissAction:(id)sender {
  
    
    [self dismissIndicatorView];
}

- (IBAction)BootomAlertViewAction:(id)sender {
    
    
    [self showBottomAlertView:@"来自底部的提示框"];
}

- (IBAction)showAlertViewAction:(id)sender {
    
    [self showAlertView:@"官方的AlertView"];
}

- (IBAction)showAlertViewActionTowButton:(id)sender {
    
    [self showAlertViewTwoBut:@"官方的AlertView2But" message:@"官方的AlertView2But" actionTitle:@"确定"];
}

- (IBAction)showActionSheetAction:(id)sender {
    
    [self presentCameraVC];
}


- (IBAction)showToastAction:(id)sender {
  [self.view makeToast:@"这是一个TOAST"];
    
}


-(void)doAlertView{
    
    NSLog(@"dian ji  1");
}
-(void)doAlertViewTwo{
    NSLog(@"dian ji  2");
    
    
}

-(void)selectImageFinished:(NSData *)image{
    _imageView.hidden=NO;
    _imageView.image=[UIImage imageWithData:image];


}

-(void)navigationRightButtonClick:(id)sender{
    [self dismissIndicatorView];
    
}

@end
